package com.ray.util.baidu;



import org.json.JSONObject;

/**
 * 用户百度图片查询入库和查询返回
 * @author Shensg
 *
 * 2018年10月9日
 * 
 * 增加参数务必修改toJson方法 否则无效 最好和我沟通
 */

public class Brief {
	//增加参数务必修改toJson方法 否则无效
	private String orderNo;//系统订单编号
	private String materialCode;//物料代码
	private String companyName;
	private int companyId;
	private String remark;
	
	public Brief(String orderNo, String materialCode, String companyName, int companyId , String remark) {
		super();
		this.orderNo = orderNo;
		this.materialCode = materialCode;
		this.companyName = companyName;
		this.companyId = companyId;
		this.remark = remark;
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public String getMaterialCode() {
		return materialCode;
	}
	public void setMaterialCode(String materialCode) {
		this.materialCode = materialCode;
	}
	
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public int getCompanyId() {
		return companyId;
	}
	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Override
	public String toString() {
		return "Brief [orderNo=" + orderNo + ", materialCode=" + materialCode + ", companyName=" + companyName
				+ ", companyId=" + companyId + ", remark=" + remark + "]";
	}
	public String toJson() {
		JSONObject brief = new JSONObject();
		brief.put("orderNo", orderNo);
		brief.put("materialCode", materialCode);
		brief.put("companyName", companyName);
		brief.put("companyId", companyId);
		brief.put("remark", remark);
		return brief.toString();
	}
	
}
